<!doctype html>
<html lang="en">

<head>
    <title>CET-6</title>
    <!-- Required meta tags -->

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <!-- Bootstrap CSS v5.2.1 -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/css/bootstrap.min.css" rel="stylesheet"
          integrity="sha384-iYQeCzEYFbKjA/T2uDLTpkwGzCiq6soy8tYaI1GyVh/UjpbCx/TYkiZhlZB6+fzT" crossorigin="anonymous">
    <link rel="stylesheet" href="../static/css/indStyle.css">
    {% block head %} {% endblock %}

</head>

<body>
<header>
    <nav class="navbar navbar-expand-lg bg-primary navbar-dark fixed-top">
        <div class="container">
            <a href={{url_for("stu.stuIndex")}} class="navbar-brand">CET-6在线考试系统</a>

            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navmenu">
                <span class="navbar-toggler-icon"></span>
            </button>

                <div class="collapse navbar-collapse" id="navmenu">
                    <ul class="navbar-nav ms-auto ">
                        <li class="nav-item">
                            <a class="nav-link" href={{url_for("exam.examRegister")}}>考试报名</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" href="#">成绩查询</a>
                        </li>
                        <li class="nav-item dropdown">
                            <div class="nav-link dropdown-toggle" id="selfInfoDropdown" role="button"
                                data-bs-toggle="dropdown" aria-expanded="false">{{user.userName}}</div>
                            <ul class="dropdown-menu" aria-labelledby="selfInfoDropdown">
                                <li><a class="dropdown-item" href={{url_for("stu.stuinfo")}}>个人信息</a></li>
                                <li><a class="dropdown-item" href={{url_for("auth.login")}}>登出</a></li>
                            </ul>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </nav>
</header>
<main>
    {% block content %} {% endblock %}
</main>
<footer class="footer fixed-bottom p-3 bg-primary text-light text-center">
    <div class="container">
        <p class="lead">Copyright &copy; 2023 斌</p>
    </div>
</footer>
<!-- Bootstrap JavaScript Libraries -->
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.6/dist/umd/popper.min.js"
        integrity="sha384-oBqDVmMz9ATKxIep9tiCxS/Z9fNfEXiDAYTujMAeBAsjFuCZSmKbSSUnQlmh/jp3" crossorigin="anonymous">
</script>

<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/js/bootstrap.min.js"
        integrity="sha384-7VPbUDkoPSGFnVtYi0QogXtr74QeVeeIs99Qfg5YCF+TidwNdjvaKZX19NZ/e6oz" crossorigin="anonymous">
</script>
</body>

</html>